package com.bj.dljd.models.query;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserEditQuery {

    @NotNull(message = "缺少商户登录名称")
    @Size(min = 6, max = 30 ,message = "商户登录名称在{min}--{max}个字符之间")
    private String loginName;

    @NotNull(message = "缺少商户手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号格式错误")
    private String phone;

    @NotNull(message = "缺少商家平台简称")
    @Size(min = 2, max = 50 ,message = "商户平台简称在{min}--{max}个字符之间")
    private String shopName;

    @NotNull(message = "缺少经营范围")
    @Size(min = 10, max = 180 ,message = "经营范围在{min}--{max}个字符之间")
    private String shopScope;

    @NotNull(message = "缺少联系邮箱")
    @Email(message = "邮箱格式错误")
    private String userEmail;


    private String userNo;


}
